]> dgit.raspbian.org Git - gnome-shell.git/commit
brightnessManager: Use slider as bias when auto brightness is being used
authorSebastian Wick <sebastian.wick@redhat.com>
Mon, 20 Oct 2025 11:38:37 +0000 (13:38 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
commit30645802ef3282fe1e24bb73cb9fcf23586d593f
treed57aac0266d149f27e96a0f49a8339193806021d
parent5466abca99f13cd1d13dd7a6882e0129a98cd963
brightnessManager: Use slider as bias when auto brightness is being used

The code previously tried to ensure that the sliders were disabled when
auto brightness was active, and determine the brightness just from the
auto brightness target we get from g-s-d.

It turns out that users do want to still have some control over the
brightness, even if auto brightness is active.

The slider is now being used as a bias for the auto brightness target
instead.

This also means that we can drop the BrightnessScale::locked property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3935>
(cherry picked from commit 157f6124d894143c7ce82559d4b845af07462928)
js/misc/brightnessManager.js
js/ui/status/brightness.js